<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="com.bluedon.ism.commons.shiro.RBACConstants"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="/commons/script.jsp" %>
<script src="${ctx}/js/jquery.validate.min.js" type="text/javascript"></script>
<script src="${ctx}/js/validate.addmethod.js" type="text/javascript"></script>
<script src="${ctx}/js/messages_cn.js" type="text/javascript"></script>
<title>参数设置</title>
</head>
<body>
<div class="m_right">
     <div class="m_r_tips borderBot">
       <div class="m_r_lefttips">您现在的位置：<a href="${ctx}/admin/home.jsp">首页</a>&gt;系统管理&gt;参数设置</div>
       <jsp:include page="/commons/admin/admin_login_remind.jsp"/>
    </div>
    <div class="reportedMain">
        <div class="reporNav" id="reporNav">
            <ul>
                <li class="now"><a href="${ctx}/admin/config/cycleConfig.do"><span class="reporNavL"></span><span class="reporNavM">参数设置</span><span class="reporNavR"></span></a></li>
            </ul>
        </div>

        <shiro:hasRole name="<%=RBACConstants.PC.CITY_ADMIN_ROLE%>">
	    <s:form id="ivg_form" method="post" action="cycleConfig" namespace="/admin/config">

        <div class="reporTab">
          <div class="reporTabL" id="reporTabL" style="margin-right: 20px;">
                <div class="reportaba" style="display:block;">
                    <div class="repBor">
                         <div class="m_r_table">
                         	<s:if test="#session.DO_FEEDBACK != null" >
				                  <div class="m_r_tips" id="feedDiv">
				                      <span class="m_r_lefttips"><span style="color:red">
				                         ${DO_FEEDBACK}
				                         <% session.removeAttribute("DO_FEEDBACK"); %>
				                      </span></span>
				                 </div>
				           	</s:if>
                             <table width="900" border="0" cellspacing="0" cellpadding="0" align="center"  style="border-collapse: collapse;border-spacing: 0; border:0;margin:0px auto; ">
                             <tr>
                                 <td width="150" class="m_r_s_con_td"><span class="required_mark">*</span>登录验证码开关：</td>
                                 <td width="270" class="m_r_s_con_text">
                                     <input type="radio" name="k_config.value" id="k_open" value="on" class="input_auto" ${k_config.value == 'on' ? "checked='checked' " : ""}/>
                                     <label for="k_open">开</label>
                                     <input type="radio" name="k_config.value" id="k_close" value="off" class="input_auto" ${k_config.value != 'on' ? "checked='checked' " : ""}/>
                                     <label for="k_close">关</label></td>
                                 <td class="m_r_s_con_text" style="color: #FF0000;"></td>
                             </tr>
                             <tr>
                                 <td width="150" class="m_r_s_con_td"><span class="required_mark">*</span>日志开关：</td>
                                 <td width="270" class="m_r_s_con_text">
                                     <input type="radio" name="l_config.value" id="l_open" value="open" class="input_auto" ${l_config.value == 'open' ? "checked='checked' " : ""}/>
                                     <label for="l_open">开</label>
                                     <input type="radio" name="l_config.value" id="l_close" value="close" class="input_auto" ${l_config.value != 'open' ? "checked='checked' " : ""}/>
                                     <label for="l_close">关</label></td>
                                 <td class="m_r_s_con_text" style="color: #FF0000;"></td>
                             </tr>
				              <tr>
				                <td width="150" class="m_r_s_con_td"></td>
				                <td width="270" class="m_r_s_con_text">&nbsp;
				                   <a href="#" class="m_r_bnt1" >
                                     <input value="保 存" type="submit"/>
                                	</a>
				                </td>
				                <td class="m_r_s_con_text"></td>
				              </tr>

				              <tr>
				                <td width="150" class="m_r_s_con_td">&nbsp;</td>
				                <td class="m_r_s_con_text">&nbsp;</td>
				                <td class="m_r_s_con_text">&nbsp;</td>
				              </tr>
				         </table>
				       </div>
                    </div>
                </div>
            </div>
	        <div class="clear"></div>
    </div>
    </s:form>
    </shiro:hasRole>
 </div>
</div>
</body>
<script type="text/javascript">
$(function(){setTimeout(function(){
	$("#feedDiv").hide(1500);
},3000);});
$.validator.setDefaults({
    submitHandler: function(form) { 
    	if (!window.confirm("确定保存吗？"))
    		return;
        form.submit(); 
    }
});

</script>
</html>
